package com.itcam.cm.user.controller;


import com.itcam.cm.model.dto.user.UserRegisterDto;
import com.itcam.cm.model.vo.common.Result;
import com.itcam.cm.user.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/api/user/sms")
@RestController
public class SmsController {

    @Autowired
    UserInfoService userInfoService;

    @GetMapping("/sendCode/{phone}")
    public Result sendCode(@PathVariable String phone){
        userInfoService.sendCode(phone);
        return Result.ok(null);
    }
}
